aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/micro/[...slug].astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/micro/[...slug].astro')
-rw-r--r--src/pages/micro/[...slug].astro6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pages/micro/[...slug].astro b/src/pages/micro/[...slug].astro
index 0ad6f8b..099d78f 100644
--- a/src/pages/micro/[...slug].astro
+++ b/src/pages/micro/[...slug].astro
@@ -1,18 +1,18 @@
---
-import { CollectionEntry, getCollection } from 'astro:content';
+import { CollectionEntry, getCollection, render } from 'astro:content';
import BlogPost from '../../layouts/BlogPost.astro';
export async function getStaticPaths() {
const posts = await getCollection('micro');
return posts.map((post) => ({
- params: { slug: post.slug },
+ params: { slug: post.id },
props: post,
}));
}
type Props = CollectionEntry<'micro'>;
const post = Astro.props;
-const { Content } = await post.render();
+const { Content } = await render(post);
---
<BlogPost {...post.data}>
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage